package Test;

import Index.Index;

import org.junit.Test;
import repository.Repository;
import core.JitAdd;
import java.io.File;
import java.util.ArrayList;
import java.util.Date;
import java.util.Queue;

/**
 * @author shkstart
 * @create 2021-11-16 10:52
 */
public class AddTest {
    @Test
    public void addTest() throws Exception {
        Repository repository = new Repository("D:\\hashcode");
        core.JitAdd.add("D:\\hashcode\\3");
//        core.JitAdd.add("D:\\hashcode\\1.txt");     //添加文件
        Index index = new Index();

        ArrayList<String> arrayList = index.getBlobList();
        System.out.println("暂存区现有" + arrayList.size() + "个文件，分别为：");
        for(String tem: arrayList){
            System.out.println(tem);
        }
    }
}
